import React from "react";
import ReactDOM from "react-dom";
import Counter from "./components/Counter";
import NameList from "./components/NameList";
import store from './redux'
class App extends React.Component{
  render(){
    return (
      <div>
        <h1>REDUX基础</h1>
        <Counter/>
        <NameList/>       
      </div>
    )
  }
};
const render = () => {
  ReactDOM.render(<App />, document.getElementById("root"));
}
render();
store.subscribe(render)

